awesome-productivity - A curated list of delightful productivity resources.
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
'Prototype' pattern | |
------------------- | |
Traditional pattern to emulate classical inheritance in JavaScript | |
Pros: | |
- already used by majority of OO JS developers | |
- performs well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
export const deepFreeze = (obj) => { | |
// Retrieve the property names defined on obj | |
const propNames = Object.getOwnPropertyNames(obj); | |
// Freeze properties before freezing self | |
propNames.forEach((name) => { | |
let prop = obj[name]; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"currencies": [ | |
{ | |
"code": "EUR", | |
"description": "Euro", | |
"symbol": "€", | |
"alignment": "L", | |
"groupingSeparator": ",", | |
"decimalSeparator": ".", | |
"decimals": 2, |
An guide how to activate Windows 11 Pro for free
Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet
The answer is yes! You can switch from almost any edition to Pro completely for free!
People which already have Pro, but not activated, can skip to this step.
What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <SDL2/SDL.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <time.h> | |
const int WINDOW_WIDTH = 640; | |
const int WINDOW_HEIGHT = 480; | |
const int GRID_WIDTH = 640; | |
const int GRID_HEIGHT = 480; |
#
# This script builds a database containing credentials, in order to check if email+password have leak.
# For a few searchs, the grep command is perfect. No need of an aircraft carrier for fishing in a lake. ;)
# Data source contains 1.4 billon (yes, billon!) passwords from 4iQ (41GB large)
#
# PS: Use. Don't abuse !
#
mkdir 1.4B-password-dump/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESPHome custom component for Arlec Grid Connect Smart Panel Heater. | |
This heater contains an MCU that's not the standard "tuya" integration in ESPHome. | |
Probably works for similar panel heaters e.g. Devola, Kogan. | |
Not implemented: | |
- the Wifi icon on the panel (but this would be a simple improvement given the info in the sources below) | |
- the timer, for the same reasoning as Neon Ninja (Home Assistant is more powerful anyway) | |
Doesn't seem to have any issues being booted from the USB-Serial adapter (outside the heater) as mentioned on the Tasmota page, but YMMV. |
NewerOlder